import { HttpClient, HttpClientModule  } from '@angular/common/http';
import { Injectable } from '@angular/core';
@Injectable({
    providedIn: 'root'
})
export class AuthService {
    constructor(private http: HttpClient) { }
    isAuthenticated() {
        console.log('call isAuthenticated');
        let baseUrl = "http://localhost:8999";
        return this.http.get(baseUrl+'/user/isAuthenticated', {withCredentials: true});

        // return true;
    }
}